package com.inspur.security.cbb3.kms.enums;

/**
 *  通用非对称加密密钥-私钥格式
 * @author liukai
 * @date 2020/11/4
 **/
public enum AsymmetricCommonPrivateKeyFormatType {
    /**
     * 其他
     */
    Other,
    /**
     */
    Pkcs8,
    Pkcs1;

    public static AsymmetricCommonPrivateKeyFormatType getByType(String type){
        for (AsymmetricCommonPrivateKeyFormatType constants : values()) {
            if (constants.name().equalsIgnoreCase(type)) {
                return constants;
            }
        }
        return Other;
    }
}
